Demo 1 Unit Testing:


Unit Testing was performed throughout the creation and implementation of each class. In order to test certain classes that rely on one another, parts of code were commented out in order to minimize dependencies. As methods and functions were implemented and finalized, further development of each class and their methods took place until the goals for demo 1 were met. Following is a break down of the unit testing for each class:

(DISCLAIMER: All testing was done by creating small test programs, single .cpp files, that simply implement an int main() and instantiate the class being tested and any of its dependencies.  Using cout statements, we looked at the output and compared it to what we expected)


GUI:
For the GUI, we just needed to test whether or not inputting numbers into the fields would actually store and/or print out the same values. The reason why the GUI could not be made into its own small unit test was because it needs the underlying classes and structure in order to have something to pass the values to. A small unit test would not compile if given the whole GUI to implement.
